package com.softeem.score.manager.service;

import com.github.pagehelper.PageInfo;
import com.softeem.score.model.dto.MajorDto;
import com.softeem.score.model.entity.MajorEntity;
import com.softeem.score.model.entity.school.Major;
import com.softeem.score.model.vo.school.CourseMajorVo;
import com.softeem.score.model.vo.school.MajorVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
public interface MajorService {
    void updateMajor(Major major);

    void saveMajor(Major major);

    PageInfo<MajorVo> findByPage(MajorDto majorDto, Integer pageNum, Integer pageSize);

    List<Long> getCheckCollege(Long majorId);

    List<MajorEntity> getMajorListByCollegeId(Long collegeId);

    List<CourseMajorVo> getCourseByMajorId(Long majorId);

    void updateCourseMajor(CourseMajorVo courseMajor);

    void saveCourseToMajor(Long majorId, List<Long> courseIds);

    void deleteMajorById(Long majorId);
}
